using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class TasksExtend
{
		public static ResponseTasksDto ToResponseDto(this Tasks entity)
{			return new ResponseTasksDto
			{
				accountId = entity.TAccountId,
				createdAt = entity.TCreatedAt,
				createdAtStr =Tools.TimeToString(entity.TCreatedAt),
				description = entity.TDescription,
				dueDate = entity.TDueDate,
				dueDateStr =Tools.TimeToString(entity.TDueDate),
				id = entity.TId,
				priority = entity.TPriority,
				status = entity.TStatus,
				title = entity.TTitle,
				updatedAt = entity.TUpdatedAt,
				updatedAtStr =Tools.TimeToString(entity.TUpdatedAt),
			};
		}
	}
}
